﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master" AutoEventWireup="true" CodeFile="viewNews.aspx.cs" Inherits="NewsManageModule_viewNews" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/News.css" />
<title>查看新闻</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc:Navigator Text="查看新闻" runat="server" />
    <div id="ViewNews">
<div id="ViewNews_top">
<a>新闻标题：</a>
    <asp:TextBox ID="txtNewsTitle" runat="server"></asp:TextBox>
<a>新闻类型：</a>
    <asp:DropDownList ID="ddlNewsType" runat="server" Width="120px">
    </asp:DropDownList>
    &nbsp;&nbsp;
    <asp:Button ID="btnNewsSearch" runat="server" Text="查询" CssClass="ButtonImage" 
        onclick="btnNewsSearch_Click" />
</div>
<div id="ViewNews_mid">
    <asp:Repeater ID="rptNews" runat="server" >
    <ItemTemplate>
    <div id="NewsDetails_top">
    <a>标题：</a><asp:Label ID="lblNewsTitle" runat="server" Text='<%#Eval("NewsTitle") %>'></asp:Label>&nbsp;
    <a>新闻类型：</a><asp:Label ID="lblNewsType" runat="server" Text='<%#Eval("NewsTypeId") %>' ></asp:Label><br /><br /></div>
        <div id="NewsDetails_mid"><asp:Label ID="lblNewsContent" runat="server" Text='<%#Eval("NewsContent") %>' ></asp:Label><br /><br /></div>
        <div id="NewsDetails_bottom"><a>发布人：</a><asp:Label ID="lblUserId" runat="server" Text='<%#Eval("UserId") %>' ></asp:Label>&nbsp;
        <a>发布日期：</a><asp:Label ID="lblPublishTDate" runat="server" Text='<%#Eval("PublishDate") %>' ></asp:Label>&nbsp;
        <a>浏览人数：</a><asp:Label ID="lblClickNum" runat="server" Text='<%#Eval("ClickNum") %>' ></asp:Label>
        </div> 
        <br /><hr />    
    </ItemTemplate>
    </asp:Repeater>
</div>
<div id="ViewNews_bottom">
<a>第</a>&nbsp;<asp:Label ID="lblPageIndex" runat="server" ></asp:Label>&nbsp;<a>页</a>&nbsp;&nbsp; <a>共</a>&nbsp;<asp:Label ID="lblPageCount" runat="server" ></asp:Label>&nbsp;<a>页</a>&nbsp;&nbsp;
    <asp:Button ID="btnPre" runat="server" Text="上一页" CssClass="ButtonImage" 
        onclick="btnPre_Click" />&nbsp;
    <asp:Button ID="btnNext" runat="server" Text="下一页" CssClass="ButtonImage" 
        onclick="btnNext_Click" />
</div>
</div>
</asp:Content>

